Feature/userinfo - #273
Conversation
Bundle ReportBundle size has no change ✅ |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #273 +/- ##
==========================================
+ Coverage 50.07% 56.18% +6.11%
==========================================
Files 998 1193 +195
Lines 58354 80337 +21983
Branches 5853 6165 +312
==========================================
+ Hits 29221 45139 +15918
- Misses 28228 34227 +5999
- Partials 905 971 +66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
| { | ||
| var result = System.Text.Json.JsonSerializer.Deserialize<DateTime?>($"\"{input}\"", options); | ||
| Assert.NotNull(result); | ||
| var nonNullResult = result.Value; |
| new("scope", "api_access") | ||
| }; | ||
|
|
||
| var formContent = new FormUrlEncodedContent(formParams); |
| foreach (var name in nameList) | ||
| { | ||
| if (!string.IsNullOrEmpty(name.StudentName) && name.ActivityDate.HasValue) | ||
| { | ||
| names.Add($"{name.StudentName} ({name.ActivityDate:MM/dd/yyyy})"); | ||
| } | ||
| } |
| foreach (var middlePart in middleParts) | ||
| { | ||
| if (middlePart.Length > 0) | ||
| { | ||
| var variation = $"{name} {middlePart[0]}"; | ||
| if (!nameVariations.Contains(variation)) | ||
| { | ||
| nameVariations.Add(variation); | ||
| } | ||
| } | ||
| } |
| foreach (var history in historyData) | ||
| { | ||
| var ucpathResult = new UCPathResult | ||
| { | ||
| JobCode = history.Jobcode, | ||
| JobCodeDescription = history.JobcodeDesc, | ||
| DepartmentId = history.Deptid, | ||
| DepartmentDescription = history.DeptDesc, | ||
| ActionDescription = history.ActionDescr, | ||
| PositionEffectiveDate = history.PositionEffdt.HasValue ? DateOnly.FromDateTime(history.PositionEffdt.Value) : null, | ||
| ReportsTo = GetReportsToName(history), | ||
| ReportsToPosition = GetReportsToPosition(history) | ||
| }; | ||
|
|
||
| result.UCPathHistory.Add(ucpathResult); | ||
| } |
| foreach (var groupDn in allGroups) | ||
| { | ||
| var formattedGroup = AdFormat(groupDn, domains); | ||
| if (!string.IsNullOrEmpty(formattedGroup)) | ||
| { | ||
| result.ADMemberOf.Add(formattedGroup); | ||
| } | ||
| } |
| foreach (var perm in permissions) | ||
| { | ||
| var parts = perm.Split('.'); | ||
| var partsToProcess = parts.Skip(1).ToList(); | ||
| if (!partsToProcess.Any()) | ||
| { | ||
| continue; | ||
| } | ||
|
|
||
| var currentList = roots; | ||
| for (int i = 0; i < partsToProcess.Count; i++) | ||
| { | ||
| var part = partsToProcess[i]; | ||
| var node = currentList.FirstOrDefault(n => n.Name == part); | ||
| if (node == null) | ||
| { | ||
| node = new PermissionNode | ||
| { | ||
| Name = part, | ||
| FullPath = string.Join('.', parts.Take(i + 2)) | ||
| }; | ||
| currentList.Add(node); | ||
| } | ||
| if (i == partsToProcess.Count - 1) | ||
| { | ||
| node.IsPermission = true; | ||
| } | ||
| currentList = node.Children; | ||
| } | ||
| } |
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
|
@JasonRobertFrancis You should rebase this off the latest main branch since this doesn't have the GitHub Actions for code quality checks running |
…modal) and responds to code-quality bot userinfo recommendations
22567dc to
694ecd4
Compare
| foreach (var role in filteredRoles) | ||
| { | ||
| string displayName = role.DisplayName ?? role.Role; | ||
| result.SystemRoles.Add(new SystemRole | ||
| { | ||
| System = system, | ||
| DisplayName = FormatPermissionName(displayName) | ||
| }); | ||
| } |
| catch | ||
| { | ||
| return new List<string>(); | ||
| } |
| catch (Exception ex) | ||
| { | ||
| Console.WriteLine($"Warning: PopulateDirectoryInfoAsync LDAP failed: {ex.Message}"); | ||
| } |
|
@JasonRobertFrancis #261 just merged to main and conflicts with this branch. Small scope: one file, Both branches reworked the same methods, so every region is "main moved it" vs "your feature changed it in place":
The two sides are complementary rather than contradictory: keep main's structure, fold in your Optional: prompt for a coding agent |
No description provided.